// 配置卧式设备基本体可用类型
const HEquipShapeTypes = [
	{
		index: '01',
		name: 'Cylinder', // 筒体
		url: getImageUrl('筒体.jpg'),
	},
	{
		index: '02',
		name: 'EHA', // 封头
		url: getImageUrl('封头.jpg'),
	},
	{
		index: '03',
		name: 'ConShell', // 锥壳
		url: getImageUrl('锥壳.jpg'),
	},
	{
		index: '04',
		name: 'Flange', // 设备法兰
		url: getImageUrl('设备法兰.jpg'),
	},
	{
		index: '05',
		name: 'Tubesheet', // 管板
		url: getImageUrl('管板.jpg'),
	},
	{
		index: '06',
		name: 'EvaporationShell', // 蒸发壳
		url: getImageUrl('蒸发壳.jpg'),
	},
	{
		index: '07',
		name: 'CollectionShell', // 积液壳
		url: getImageUrl('积液壳.jpg'),
	},
	{
		index: '08',
		name: 'Saddle', // 鞍座
		url: getImageUrl('鞍座.jpg'),
	},
	{
		index: '09',
		name: 'EccShell', // 偏心锥壳
		url: getImageUrl('偏心锥壳.jpg'),
	},
]

// 配置立式设备基本体可用类型
const VEquipShapeTypes = [
	{
		index: '21',
		name: 'Cylinder', // 筒体
		url: getImageUrl('筒体.jpg'),
	},
	{
		index: '22',
		name: 'EHA', // 封头
		url: getImageUrl('封头.jpg'),
	},
	{
		index: '23',
		name: 'ConShell', // 锥壳
		url: getImageUrl('锥壳.jpg'),
	},
	{
		index: '24',
		name: 'Flange', // 设备法兰
		url: getImageUrl('设备法兰.jpg'),
	},
	{
		index: '25',
		name: 'Tubesheet', // 管板
		url: getImageUrl('管板.jpg'),
	},
	{
		index: '26',
		name: 'SupportLegs', // 支腿
		url: getImageUrl('支腿.jpg'),
	},
	{
		index: '27',
		name: 'LiftingLegs', // 耳座
		url: getImageUrl('耳座.jpg'),
	},
	{
		index: '28',
		name: 'ModifyEccShell', // 修改支撑
		url: getImageUrl('耳座M.jpg'),
	},
	{
		index: '29',
		name: 'EccShell', // 偏心锥壳
		url: getImageUrl('偏心锥壳.jpg'),
	},
	{
		index: '30',
		name: 'LiftingLug', // 吊耳
		url: getImageUrl('吊耳.png'),
	},
	{
		index: '31',
		name: 'Ball', // 球罐
		url: getImageUrl('球罐.jpg'),
	},
]

// 设备基本体参数
const ShapeParams = {
	// 筒体
	Cylinder: {
		name: '筒体',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：筒体内径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：筒体壁厚(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：筒体长度(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
		},
	},
	// 封头
	EHA: {
		name: '封头',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：壁厚(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：曲率半径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
		},
	},
	// 锥壳
	ConShell: {
		name: '锥壳',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：小端公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：大端公称直径(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：锥壳高度(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：壁厚(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
		},
	},
	// 偏心锥壳
	EccShell: {
		name: '偏心锥壳',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：小端公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：大端公称直径(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：锥壳高度(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：壁厚(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
		},
	},
	// 积液壳
	CollectionShell: {
		name: '积液壳',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：距左侧鞍座距离(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：公称直径(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：厚度(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：外伸高度(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数D：开孔处设备公称直径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
		},
	},
	// 蒸发壳
	EvaporationShell: {
		name: '蒸发壳',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：距左侧鞍座距离(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：公称直径(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：厚度(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：外伸高度(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数D：开孔处设备公称直径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
		},
	},
	// 设备法兰
	Flange: {
		name: '设备法兰',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：外径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：高度(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
		},
	},
	// 鞍座
	Saddle: {
		name: '鞍座',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：包角(°)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：鞍座距左封头切线距离(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：鞍座间距(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数E：鞍座支撑高度(mm)',
			},
			{
				prop: 'parameter_f',
				label: '参数F：鞍座支撑处筒体壁厚(mm)',
			},
			{
				prop: 'parameter_g',
				label: '参数G：隔冷块厚度(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
			parameter_f: '',
			parameter_g: '0',
		},
	},
	// 管板
	Tubesheet: {
		name: '管板',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：外径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：厚度(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：凸台厚度(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：垫片厚度(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
		},
	},

	// 耳座
	LiftingLegs: {
		name: '耳座',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：数量',
			},
			{
				prop: 'parameter_c',
				label: '参数C：支撑面距下封头切线距离(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：高度H(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数E：L1(mm)',
			},
			{
				prop: 'parameter_f',
				label: '参数F：支耳顶板外径(mm)',
			},
			{
				prop: 'parameter_g',
				label: '参数G：支耳底板外径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
			parameter_f: '',
			parameter_g: '',
		},
	},

	// 支腿
	SupportLegs: {
		name: '支腿',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：数量',
			},
			{
				prop: 'parameter_c',
				label: '参数C：距下封头切线距离(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：底板参数B(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数E：底板中心圆直径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
		},
	},

	// 球罐
	Ball: {
		name: '球罐',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：公称直径(mm)',
			},
			{
				prop: 'parameter_b',
				label: '参数B：壁厚(mm)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：支腿数量',
			},
			{
				prop: 'parameter_d',
				label: '参数D：支腿底板直径(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数E：支腿高度(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '',
			parameter_e: '',
		},
	},

	//支腿高度修改
	ModifyEccShell: {
		name: '支撑修改',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：裙座支腿高度-耳坐距下封头切线距离(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
		},
	},

	//立式设备吊耳
	LiftingLug: {
		name: '吊耳',
		labels: [
			{
				prop: 'parameter_a',
				label: '参数A：吊耳型号',
				elSelect: true,
			},
			{
				prop: 'parameter_b',
				label: '参数B：吊耳角度(°)',
			},
			{
				prop: 'parameter_c',
				label: '参数C：吊耳到支撑面距离(mm)',
			},
			{
				prop: 'parameter_d',
				label: '参数D：非标轴式吊耳外伸长度(mm)',
			},
			{
				prop: 'parameter_e',
				label: '参数E：非标轴式吊耳垫板直径(mm)',
			},
		],
		shapeRequireParams: {
			parameter_a: '',
			parameter_b: '',
			parameter_c: '',
			parameter_d: '0',
			parameter_e: '0',
		},
	},
}

// 设备管口参数可选值
const NozzleParamOptions = {
	nozzleNpd: [
		{value: '15', label: '15'},
		{value: '20', label: '20'},
		{value: '25', label: '25'},
		{value: '32', label: '32'},
		{value: '40', label: '40'},
		{value: '50', label: '50'},
		{value: '65', label: '65'},
		{value: '80', label: '80'},
		{value: '100', label: '100'},
		{value: '125', label: '125'},
		{value: '150', label: '150'},
		{value: '200', label: '200'},
		{value: '250', label: '250'},
		{value: '300', label: '300'},
		{value: '350', label: '350'},
		{value: '400', label: '400'},
		{value: '450', label: '450'},
		{value: '500', label: '500'},
		{value: '600', label: '600'},
		{value: '650', label: '650'},
		{value: '700', label: '700'},
		{value: '750', label: '750'},
		{value: '800', label: '800'},
		{value: '850', label: '850'},
		{value: '900', label: '900'},
		{value: '950', label: '950'},
		{value: '1000', label: '1000'},
		{value: '1050', label: '1050'},
		{value: '1100', label: '1100'},
		{value: '1150', label: '1150'},
		{value: '1200', label: '1200'},
		{value: '1250', label: '1250'},
		{value: '1300', label: '1300'},
		{value: '1350', label: '1350'},
		{value: '1400', label: '1400'},
		{value: '1450', label: '1450'},
		{value: '1500', label: '1500'},
	],

	nozzleRating: [
		{value: 'CL150', label: 'CL150'},
		{value: 'CL300', label: 'CL300'},
		{value: 'CL600', label: 'CL600'},
		{value: 'CL900', label: 'CL900'},
		{value: 'CL1500', label: 'CL1500'},
		{value: 'CL2500', label: 'CL2500'},
		{value: 'PN2.5', label: 'PN2.5'},
		{value: 'PN6', label: 'PN6'},
		{value: 'PN10', label: 'PN10'},
		{value: 'PN16', label: 'PN16'},
		{value: 'PN20', label: 'PN20'},
		{value: 'PN25', label: 'PN25'},
		{value: 'PN40', label: 'PN40'},
		{value: 'PN50', label: 'PN50'},
		{value: 'PN63', label: 'PN63'},
		{value: 'PN100', label: 'PN100'},
		{value: 'PN110', label: 'PN110'},
		{value: 'PN150', label: 'PN150'},
		{value: 'PN160', label: 'PN160'},
		{value: 'PN260', label: 'PN260'},
	],

	nozzleStandard: [
		{value: 'HG/T 20553(Ia)', label: 'HG/T 20553(Ia)'},
		{value: 'HG/T20592', label: 'HG/T20592'},
		{value: 'HG/T20592(B)', label: 'HG/T20592(B)'},
		{value: 'HG/T20615', label: 'HG/T20615'},
		{value: 'HG/T20623(B)', label: 'HG/T20623(B)'},
		{value: 'SH/T 3405', label: 'SH/T 3405'},
		{value: 'SH/T3406', label: 'SH/T3406'},
		{value: 'SH/T3406(B)', label: 'SH/T3406(B)'},
		{value: 'ASME B16.5', label: 'ASME B16.5'},
		{value: 'ASME B16.47(A)', label: 'ASME B16.47(A)'},
		{value: 'ASME B16.47(B)', label: 'ASME B16.47(B)'},
	],

	nozzleStandardWithYear: [
		{label: 'HG/T 20553(Ia)', value: 'HG/T 20553(Ia)-2011'},
		{label: 'HG/T20592', value: 'HG/T20592-2009'},
		{label: 'HG/T20592(B)', value: 'HG/T20592(B)-2009'},
		{label: 'HG/T20615', value: 'HG/T20615-2009'},
		{label: 'HG/T20623(B)', value: 'HG/T20623(B)-2009'},
		{label: 'SH/T 3405', value: 'SH/T 3405-2017'},
		{label: 'SH/T3406', value: 'SH/T3406-2022'},
		{label: 'SH/T3406(B)', value: 'SH/T3406(B)-2022'},
		{label: 'ASME B16.5', value: 'ASME B16.5-2017'},
		{label: 'ASME B16.47(A)', value: 'ASME B16.47(A)-2017'},
		{label: 'ASME B16.47(B)', value: 'ASME B16.47(B)-2017'},
	],

	// nozzlePreparation: ['FF', 'RF', 'TG'],
	nozzlePreparation: [
		{value: 'FF', label: 'FF'},
		{value: 'RF', label: 'RF'},
		{value: 'RJ', label: 'RJ'},
		{value: 'TG', label: 'TG'},
		{value: 'MFM', label: 'MFM'},
		{value: 'BW', label: 'BW'},
	],
	nozzleLocation: ['上封头', '下封头', '筒体', '锥壳'],
	nozzleLocation1: ['左封头', '右封头', '筒体', '锥壳'],
	nozzleLocationForNozzleMaterial: ['左封头', '右封头', '上封头', '下封头', '筒体', '锥壳'],

	nozzleLocationType: {
		// 左/右封头
		EHA: {
			labels: [
				{prop: 'parameter_6', label: '参数A：开孔圆半径'},
				{prop: 'parameter_7', label: '参数B：管口方位'},
				{prop: 'parameter_8', label: '参数C：轴向夹角'},
				{prop: 'parameter_9', label: '参数D：法兰面封头切线距'},
			],
			nozzleRequireParams: {
				parameter_6: '',
				parameter_7: '',
				parameter_8: '',
				parameter_9: '',
			},
		},

		// 筒体
		Cylinder: {
			labels: [
				{prop: 'parameter_7', label: '参数B：封头切线距'},
				{prop: 'parameter_8', label: '参数C：偏心距离'},
				{prop: 'parameter_9', label: '参数D：法兰方位角'},
				{prop: 'parameter_10', label: '参数E：法兰夹角'},
				{prop: 'parameter_11', label: '参数F：法兰设备中心距'},
			],
			nozzleRequireParams: {
				parameter_7: '',
				parameter_8: '',
				parameter_9: '',
				parameter_10: '',
				parameter_11: '',
			},
		},

		// 锥壳
		Shell: {
			labels: [
				{prop: 'parameter_6', label: '参数A：开孔处锥壳直径'},
				{prop: 'parameter_7', label: '参数B：封头切线距'},
				{prop: 'parameter_8', label: '参数C：偏心距离'},
				{prop: 'parameter_9', label: '参数D：法兰方位角'},
				{prop: 'parameter_10', label: '参数E：法兰夹角'},
				{prop: 'parameter_11', label: '参数F：法兰设备中心距'},
			],
			nozzleRequireParams: {
				parameter_6: '',
				parameter_7: '',
				parameter_8: '',
				parameter_9: '',
				parameter_10: '',
				parameter_11: '',
			},
		},
	},
}

// 立式设备吊耳类型可选值
const LiftingLegTypeOptions = [
	{
		value: 'SP-1',
		label: 'SP-1',
	},
	{
		value: 'SP-2',
		label: 'SP-2',
	},
	{
		value: 'SP-3',
		label: 'SP-3',
	},
	{
		value: 'SP-4',
		label: 'SP-4',
	},
	{
		value: 'SP-5',
		label: 'SP-5',
	},
	{
		value: 'SP-6',
		label: 'SP-6',
	},
	{
		value: 'SP-7',
		label: 'SP-7',
	},
	{
		value: 'SP-8',
		label: 'SP-8',
	},
	{
		value: 'SP-9',
		label: 'SP-9',
	},
	{
		value: 'SP-10',
		label: 'SP-10',
	},
	{
		value: 'SP-11',
		label: 'SP-11',
	},
	{
		value: 'SP-12',
		label: 'SP-12',
	},
	{
		value: 'SP-13',
		label: 'SP-13',
	},
	{
		value: 'AXA-1',
		label: 'AXA-1',
	},
	{
		value: 'AXA-2',
		label: 'AXA-2',
	},
	{
		value: 'AXA-3',
		label: 'AXA-3',
	},
	{
		value: 'AXA-4',
		label: 'AXA-4',
	},
	{
		value: 'AXA-5',
		label: 'AXA-5',
	},
	{
		value: 'AXA-6',
		label: 'AXA-6',
	},
	{
		value: 'AXA-7',
		label: 'AXA-7',
	},
	{
		value: 'AXA-8',
		label: 'AXA-8',
	},
	{
		value: 'AXA-9',
		label: 'AXA-9',
	},
	{
		value: 'AXA-10',
		label: 'AXA-10',
	},
	{
		value: 'AXA-11',
		label: 'AXA-11',
	},
	{
		value: 'AXA-12',
		label: 'AXA-12',
	},
]

function getImageUrl(name) {
	return new URL(`../img/${name}`, import.meta.url).href
}

export {HEquipShapeTypes, VEquipShapeTypes, ShapeParams, NozzleParamOptions, LiftingLegTypeOptions}
